{extend name="base" /}
{block name="content"}
<script language="javascript" type="text/javascript" src="__STATIC__/public/My97DatePicker/WdatePicker.js"></script>
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>商城</span>
            <span class="icon-angle-right"></span>
            <span>商城设置</span>
            <span class="icon-angle-right"></span>
            <span>客服设置</span>
            <span class="icon-angle-right"></span>

        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <div class="m-form">
                <form class="layui-form">
                    <table class="m-table">
                        <tbody>
                            <tr>
                                <th colspan="2">客服电话</th>
                            </tr>
                            <tr>
                                <td width="15%"><label for="goods_name">客服电话<em>*</em></label></td>
                                <td><input type="text" class="u-ipt u-ipt-longer" lay-verify="required" name="customer_service_phone" id="customer_service_phone" placeholder="请输入客服电话" value="{$info.customer_service_phone}" /></td>
                            </tr>
                    </table>
                    <div class="m-form-btn">  <button  class="u-btn" lay-submit lay-filter="formDemo">确定提交</button></div>
<!--                    <textarea name="goods_spec_format" class="dn"></textarea>-->
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="extrajs"}
<script src="__STATIC__/public/js/jquery-ui.min.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            $.post("{:url('savePhone')}",{
                customer_service_phone:data.field.customer_service_phone
            },function (res) {
                layer.alert(res.message);
            })
            return false;
        });
    });
</script>

<script>

</script>


<!--<script src="__STATIC__/public/js/good_add.js?t=<?php echo time();?>"></script>-->
{/block}